import { createRouter, createWebHistory } from 'vue-router'
import BaseDemo from '../views/BaseDemo.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'index',
      component: BaseDemo
    },
    {
      path: '/pinia',
      name: 'pinia',
      component: ()=> import('@/views/piniaDemo/index.vue')
    },
    {
      path: '/setupDemo',
      name: 'setupDemo',
      component: ()=> import('@/views/SetupDemo.vue')
    },
    {
      path: '/c',
      name: 'c',
      component: ()=> import('@/views/Composables.vue')
    },
  ]
})

export default router
